<markers>
<?php foreach($this->rows AS $row): ?>
    <marker lat="<?php echo $row->lat ?>" lng="<?php echo $row->lng ?>" zoom="<?php echo $row->zoom ?>"><![CDATA[
        <?php if(!empty($row->name)): ?>
           <b><?php echo $row->name ?></b><br />
        <?php endif; ?>
        <?php if(!empty($row->address)): ?>
           <?php echo $row->address ?><br />
        <?php endif; ?>
        <?php if(!empty($row->addition)): ?>
            <?php echo $row->addition ?><br />
        <?php endif; ?>
        <?php if(!empty($row->country)): ?>
            <?php if($row->country != 'CH'): ?>
                <?php echo $row->country . ' - ' ?>
            <?php endif; ?>
        <?php endif; ?>
        <?php if(!empty($row->zip) || !empty($row->city)): ?>
            <?php echo $row->zip . ' ' . $row->city ?><br />
        <?php endif; ?>
        <?php if(!empty($row->phone)): ?>
            Tel: <?php echo $row->phone ?><br />
        <?php endif; ?>
        <?php if(!empty($row->fax)): ?>
            Fax: <?php echo $row->fax ?><br />
        <?php endif; ?>
        <?php if(!empty($this->showLink)): ?>
            <br /><a href="<?php echo $this->urlThisPage(array('sherpa_stores' => array('action' => 'store', 'id' => $row->id))) ?>">Mehr Informationen</a>
        <?php endif; ?>
    ]]></marker>
<?php endforeach; ?>
</markers>

<?php

if(!function_exists('parseToXML')) {
    function parseToXML($htmlStr)
    {
        $xmlStr=str_replace('<','&lt;',$htmlStr);
        $xmlStr=str_replace('>','&gt;',$xmlStr);
        $xmlStr=str_replace('"','&quot;',$xmlStr);
        $xmlStr=str_replace("'",'&#39;',$xmlStr);
        $xmlStr=str_replace("&",'&amp;',$xmlStr);
    return $xmlStr;
    }
}
?>